home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / gtk-2.0 / gtk / gtkimmodule.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-04-25  |  1.9 KB  |  62 lines

  1. /* GTK - The GIMP Toolkit
  2.  * Copyright (C) 2000 Red Hat Software
  3.  *
  4.  * This library is free software; you can redistribute it and/or
  5.  * modify it under the terms of the GNU Lesser General Public
  6.  * License as published by the Free Software Foundation; either
  7.  * version 2 of the License, or (at your option) any later version.
  8.  *
  9.  * This library is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.  * Lesser General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU Lesser General Public
  15.  * License along with this library; if not, write to the
  16.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17.  * Boston, MA 02111-1307, USA.
  18.  */
  19.  
  20. #ifndef __GTK_IM_MODULE_H__
  21. #define __GTK_IM_MODULE_H__
  22.  
  23.  
  24. #include <gtk/gtkimcontext.h>
  25.  
  26. G_BEGIN_DECLS
  27.  
  28. typedef struct _GtkIMContextInfo GtkIMContextInfo;
  29.  
  30. struct _GtkIMContextInfo 
  31. {
  32.   const gchar *context_id;
  33.   const gchar *context_name;
  34.   const gchar *domain;
  35.   const gchar *domain_dirname;
  36.   const gchar *default_locales;
  37. };
  38.  
  39. /* Functions for use within GTK+
  40.  */
  41. void          _gtk_im_module_list                   (const GtkIMContextInfo ***contexts,
  42.                             guint                    *n_contexts);
  43. GtkIMContext *_gtk_im_module_create                 (const gchar             *context_id);
  44. const gchar * _gtk_im_module_get_default_context_id (const gchar             *lang);
  45.  
  46. /* The following entry points are exported by each input method module
  47.  */
  48.  
  49. /*
  50. void          im_module_list   (const GtkIMContextInfo ***contexts,
  51.                 guint                    *n_contexts);
  52. void          im_module_init   (GtkModule             *module);
  53. void          im_module_exit   (void);
  54. GtkIMContext *im_module_create (const gchar             *context_id);
  55. */
  56.  
  57.  
  58. G_END_DECLS
  59.  
  60.  
  61. #endif /* __GTK_IM_MODULE_H__ */
  62.